package router

import (
	"deliv-mate/handler"

	"github.com/gin-gonic/gin"
)

func Init() *gin.Engine {
	r := gin.Default()
	r.POST("/user/login", handler.UserLogin)
	r.POST("/user/add", handler.UserAdd)
	r.POST("/user/delete", handler.UserDelete)
	r.POST("/order/add", handler.OrderAdd)
	r.GET("/list", handler.List)
	r.GET("/detail", handler.Detail)
	return r
}
